'use strict';

const titbit = require('titbit');

const app=new titbit({
    debug:true,
    https:true,
    key:'/usr/local/cert/www.cgwzz.top.key',
    cert:'/usr/local/cert/www.cgwzz.top.crt'
})

app.get('/',async c=>{
    c.res.body='wanglinqi success'
})

app.get('/info',async c=>{
  let obj={'name':'王琳旗','sno':'2018011653'}
  let obj2=JSON.stringify(obj)
  c.res.body=obj2
})

app.get('/info',async c=>{
    c.res.body='name'
})

app.run(1234)
